function TbPartnerConfig(params){ 
	 
}

TbPartnerConfig.Where = function(type,proxy){
	this.type = type;
	this.proxy=proxy;
	this.linked = null;
	this.set = null;
	if(this.type==0){
		this.set = new TbPartnerConfig.Where(1,true);
		this.set.linked = this;
	}
	this.getProxy = function(){
		var m = new TbPartnerConfig.Where(this.type);//当前的对像
		if(this.type==0){
			m.set = new TbPartnerConfig.Where(1,true);//set对象
			m.set.linked = m;
		}else{
			m.linked=this.linked;
			this.linked.linked=m;
		}
		return m;
	}
	this.data = {};
	this.put = function(key,value){
		this.data[key] = value;
	}
	this.get = function(key){
		return this.data[key];
	}
	/** 编号 [非空]       **/
	this.tbpcId=function(tbpcId){if(this.proxy)return this.getProxy().tbpcId(tbpcId);  this.put("tbpcId", tbpcId);return this;};
	/** and tbpc_id is null */
	this.tbpcIdNull=function(){if(this.proxy)return this.getProxy().tbpcIdNull();if(this.get("tbpcIdNot")==null)this.put("tbpcIdNot", "");this.put("tbpcId", null);return this;};
	/** not .... */
	this.tbpcIdNot=function(){if(this.proxy)return this.getProxy().tbpcIdNot();this.put("tbpcIdNot", "not");return this;};
	this.tbpcIdNotNull=function(){if(this.proxy)return this.getProxy().tbpcIdNotNull();this.put("tbpcIdNot", "not");this.put("tbpcId", null);return this;};
	this.tbpcIdNot=function(tbpcId){if(this.proxy)return this.getProxy().tbpcIdNot(tbpcId);this.put("tbpcIdNot", "not");this.put("tbpcId", tbpcId);return this;};
	/** and tbpc_id <= ? */
	this.tbpcIdMin=function(min){if(this.proxy)return this.getProxy().tbpcIdMin(min);this.put("tbpcIdMin", min);return this;};
	/** and tbpc_id >= ? */
	this.tbpcIdMax=function(max){if(this.proxy)return this.getProxy().tbpcIdMax(max);this.put("tbpcIdMax", max);return this;};
	this.tbpcIdIn=function(ids){
		if(this.proxy)return this.getProxy().tbpcIdIn(ids);  this.put("tbpcIdIn", ids);return this;
	};	
	
	/** 品牌  [Merchant]      **/
	this.tbpcBrand=function(tbpcBrand){if(this.proxy)return this.getProxy().tbpcBrand(tbpcBrand);  this.put("tbpcBrand", tbpcBrand);return this;};
	/** and tbpc_brand is null */
	this.tbpcBrandNull=function(){if(this.proxy)return this.getProxy().tbpcBrandNull();if(this.get("tbpcBrandNot")==null)this.put("tbpcBrandNot", "");this.put("tbpcBrand", null);return this;};
	/** not .... */
	this.tbpcBrandNot=function(){if(this.proxy)return this.getProxy().tbpcBrandNot();this.put("tbpcBrandNot", "not");return this;};
	this.tbpcBrandNotNull=function(){if(this.proxy)return this.getProxy().tbpcBrandNotNull();this.put("tbpcBrandNot", "not");this.put("tbpcBrand", null);return this;};
	this.tbpcBrandNot=function(tbpcBrand){if(this.proxy)return this.getProxy().tbpcBrandNot(tbpcBrand);this.put("tbpcBrandNot", "not");this.put("tbpcBrand", tbpcBrand);return this;};
	this.tbpcBrandIn=function(ids){
		if(this.proxy)return this.getProxy().tbpcBrandIn(ids);  this.put("tbpcBrandIn", ids);return this;
	};	
	
	/** 合伙人卡名称        **/
	this.tbpcCardName=function(tbpcCardName){if(this.proxy)return this.getProxy().tbpcCardName(tbpcCardName);  this.put("tbpcCardName", tbpcCardName);return this;};
	/** and tbpc_card_name is null */
	this.tbpcCardNameNull=function(){if(this.proxy)return this.getProxy().tbpcCardNameNull();if(this.get("tbpcCardNameNot")==null)this.put("tbpcCardNameNot", "");this.put("tbpcCardName", null);return this;};
	/** not .... */
	this.tbpcCardNameNot=function(){if(this.proxy)return this.getProxy().tbpcCardNameNot();this.put("tbpcCardNameNot", "not");return this;};
	this.tbpcCardNameNotNull=function(){if(this.proxy)return this.getProxy().tbpcCardNameNotNull();this.put("tbpcCardNameNot", "not");this.put("tbpcCardName", null);return this;};
	this.tbpcCardNameNot=function(tbpcCardName){if(this.proxy)return this.getProxy().tbpcCardNameNot(tbpcCardName);this.put("tbpcCardNameNot", "not");this.put("tbpcCardName", tbpcCardName);return this;};
	
	/** 价格        **/
	this.tbpcPrice=function(tbpcPrice){if(this.proxy)return this.getProxy().tbpcPrice(tbpcPrice);  this.put("tbpcPrice", tbpcPrice);return this;};
	/** and tbpc_price is null */
	this.tbpcPriceNull=function(){if(this.proxy)return this.getProxy().tbpcPriceNull();if(this.get("tbpcPriceNot")==null)this.put("tbpcPriceNot", "");this.put("tbpcPrice", null);return this;};
	/** not .... */
	this.tbpcPriceNot=function(){if(this.proxy)return this.getProxy().tbpcPriceNot();this.put("tbpcPriceNot", "not");return this;};
	this.tbpcPriceNotNull=function(){if(this.proxy)return this.getProxy().tbpcPriceNotNull();this.put("tbpcPriceNot", "not");this.put("tbpcPrice", null);return this;};
	this.tbpcPriceNot=function(tbpcPrice){if(this.proxy)return this.getProxy().tbpcPriceNot(tbpcPrice);this.put("tbpcPriceNot", "not");this.put("tbpcPrice", tbpcPrice);return this;};
	/** and tbpc_price <= ? */
	this.tbpcPriceMin=function(min){if(this.proxy)return this.getProxy().tbpcPriceMin(min);this.put("tbpcPriceMin", min);return this;};
	/** and tbpc_price >= ? */
	this.tbpcPriceMax=function(max){if(this.proxy)return this.getProxy().tbpcPriceMax(max);this.put("tbpcPriceMax", max);return this;};
	
	/** 产品配置    query:goods text:number money:price     **/
	this.tbpcProducts=function(tbpcProducts){if(this.proxy)return this.getProxy().tbpcProducts(tbpcProducts);  this.put("tbpcProducts", tbpcProducts);return this;};
	/** and tbpc_products is null */
	this.tbpcProductsNull=function(){if(this.proxy)return this.getProxy().tbpcProductsNull();if(this.get("tbpcProductsNot")==null)this.put("tbpcProductsNot", "");this.put("tbpcProducts", null);return this;};
	/** not .... */
	this.tbpcProductsNot=function(){if(this.proxy)return this.getProxy().tbpcProductsNot();this.put("tbpcProductsNot", "not");return this;};
	this.tbpcProductsNotNull=function(){if(this.proxy)return this.getProxy().tbpcProductsNotNull();this.put("tbpcProductsNot", "not");this.put("tbpcProducts", null);return this;};
	this.tbpcProductsNot=function(tbpcProducts){if(this.proxy)return this.getProxy().tbpcProductsNot(tbpcProducts);this.put("tbpcProductsNot", "not");this.put("tbpcProducts", tbpcProducts);return this;};
	
	/** 普通间接奖励        **/
	this.tbpcPtJj=function(tbpcPtJj){if(this.proxy)return this.getProxy().tbpcPtJj(tbpcPtJj);  this.put("tbpcPtJj", tbpcPtJj);return this;};
	/** and tbpc_pt_jj is null */
	this.tbpcPtJjNull=function(){if(this.proxy)return this.getProxy().tbpcPtJjNull();if(this.get("tbpcPtJjNot")==null)this.put("tbpcPtJjNot", "");this.put("tbpcPtJj", null);return this;};
	/** not .... */
	this.tbpcPtJjNot=function(){if(this.proxy)return this.getProxy().tbpcPtJjNot();this.put("tbpcPtJjNot", "not");return this;};
	this.tbpcPtJjNotNull=function(){if(this.proxy)return this.getProxy().tbpcPtJjNotNull();this.put("tbpcPtJjNot", "not");this.put("tbpcPtJj", null);return this;};
	this.tbpcPtJjNot=function(tbpcPtJj){if(this.proxy)return this.getProxy().tbpcPtJjNot(tbpcPtJj);this.put("tbpcPtJjNot", "not");this.put("tbpcPtJj", tbpcPtJj);return this;};
	/** and tbpc_pt_jj <= ? */
	this.tbpcPtJjMin=function(min){if(this.proxy)return this.getProxy().tbpcPtJjMin(min);this.put("tbpcPtJjMin", min);return this;};
	/** and tbpc_pt_jj >= ? */
	this.tbpcPtJjMax=function(max){if(this.proxy)return this.getProxy().tbpcPtJjMax(max);this.put("tbpcPtJjMax", max);return this;};
	
	/** 普通直接奖励        **/
	this.tbpcPtZhj=function(tbpcPtZhj){if(this.proxy)return this.getProxy().tbpcPtZhj(tbpcPtZhj);  this.put("tbpcPtZhj", tbpcPtZhj);return this;};
	/** and tbpc_pt_zhj is null */
	this.tbpcPtZhjNull=function(){if(this.proxy)return this.getProxy().tbpcPtZhjNull();if(this.get("tbpcPtZhjNot")==null)this.put("tbpcPtZhjNot", "");this.put("tbpcPtZhj", null);return this;};
	/** not .... */
	this.tbpcPtZhjNot=function(){if(this.proxy)return this.getProxy().tbpcPtZhjNot();this.put("tbpcPtZhjNot", "not");return this;};
	this.tbpcPtZhjNotNull=function(){if(this.proxy)return this.getProxy().tbpcPtZhjNotNull();this.put("tbpcPtZhjNot", "not");this.put("tbpcPtZhj", null);return this;};
	this.tbpcPtZhjNot=function(tbpcPtZhj){if(this.proxy)return this.getProxy().tbpcPtZhjNot(tbpcPtZhj);this.put("tbpcPtZhjNot", "not");this.put("tbpcPtZhj", tbpcPtZhj);return this;};
	/** and tbpc_pt_zhj <= ? */
	this.tbpcPtZhjMin=function(min){if(this.proxy)return this.getProxy().tbpcPtZhjMin(min);this.put("tbpcPtZhjMin", min);return this;};
	/** and tbpc_pt_zhj >= ? */
	this.tbpcPtZhjMax=function(max){if(this.proxy)return this.getProxy().tbpcPtZhjMax(max);this.put("tbpcPtZhjMax", max);return this;};
	
	/** 代理间接奖励        **/
	this.tbpcDlJj=function(tbpcDlJj){if(this.proxy)return this.getProxy().tbpcDlJj(tbpcDlJj);  this.put("tbpcDlJj", tbpcDlJj);return this;};
	/** and tbpc_dl_jj is null */
	this.tbpcDlJjNull=function(){if(this.proxy)return this.getProxy().tbpcDlJjNull();if(this.get("tbpcDlJjNot")==null)this.put("tbpcDlJjNot", "");this.put("tbpcDlJj", null);return this;};
	/** not .... */
	this.tbpcDlJjNot=function(){if(this.proxy)return this.getProxy().tbpcDlJjNot();this.put("tbpcDlJjNot", "not");return this;};
	this.tbpcDlJjNotNull=function(){if(this.proxy)return this.getProxy().tbpcDlJjNotNull();this.put("tbpcDlJjNot", "not");this.put("tbpcDlJj", null);return this;};
	this.tbpcDlJjNot=function(tbpcDlJj){if(this.proxy)return this.getProxy().tbpcDlJjNot(tbpcDlJj);this.put("tbpcDlJjNot", "not");this.put("tbpcDlJj", tbpcDlJj);return this;};
	/** and tbpc_dl_jj <= ? */
	this.tbpcDlJjMin=function(min){if(this.proxy)return this.getProxy().tbpcDlJjMin(min);this.put("tbpcDlJjMin", min);return this;};
	/** and tbpc_dl_jj >= ? */
	this.tbpcDlJjMax=function(max){if(this.proxy)return this.getProxy().tbpcDlJjMax(max);this.put("tbpcDlJjMax", max);return this;};
	
	/** 代理直接奖励        **/
	this.tbpcDlZhj=function(tbpcDlZhj){if(this.proxy)return this.getProxy().tbpcDlZhj(tbpcDlZhj);  this.put("tbpcDlZhj", tbpcDlZhj);return this;};
	/** and tbpc_dl_zhj is null */
	this.tbpcDlZhjNull=function(){if(this.proxy)return this.getProxy().tbpcDlZhjNull();if(this.get("tbpcDlZhjNot")==null)this.put("tbpcDlZhjNot", "");this.put("tbpcDlZhj", null);return this;};
	/** not .... */
	this.tbpcDlZhjNot=function(){if(this.proxy)return this.getProxy().tbpcDlZhjNot();this.put("tbpcDlZhjNot", "not");return this;};
	this.tbpcDlZhjNotNull=function(){if(this.proxy)return this.getProxy().tbpcDlZhjNotNull();this.put("tbpcDlZhjNot", "not");this.put("tbpcDlZhj", null);return this;};
	this.tbpcDlZhjNot=function(tbpcDlZhj){if(this.proxy)return this.getProxy().tbpcDlZhjNot(tbpcDlZhj);this.put("tbpcDlZhjNot", "not");this.put("tbpcDlZhj", tbpcDlZhj);return this;};
	/** and tbpc_dl_zhj <= ? */
	this.tbpcDlZhjMin=function(min){if(this.proxy)return this.getProxy().tbpcDlZhjMin(min);this.put("tbpcDlZhjMin", min);return this;};
	/** and tbpc_dl_zhj >= ? */
	this.tbpcDlZhjMax=function(max){if(this.proxy)return this.getProxy().tbpcDlZhjMax(max);this.put("tbpcDlZhjMax", max);return this;};
	
	/** 合伙人有效期     已月为单位12 代表12个月后失效   **/
	this.tbpcValidity=function(tbpcValidity){if(this.proxy)return this.getProxy().tbpcValidity(tbpcValidity);  this.put("tbpcValidity", tbpcValidity);return this;};
	/** and tbpc_validity is null */
	this.tbpcValidityNull=function(){if(this.proxy)return this.getProxy().tbpcValidityNull();if(this.get("tbpcValidityNot")==null)this.put("tbpcValidityNot", "");this.put("tbpcValidity", null);return this;};
	/** not .... */
	this.tbpcValidityNot=function(){if(this.proxy)return this.getProxy().tbpcValidityNot();this.put("tbpcValidityNot", "not");return this;};
	this.tbpcValidityNotNull=function(){if(this.proxy)return this.getProxy().tbpcValidityNotNull();this.put("tbpcValidityNot", "not");this.put("tbpcValidity", null);return this;};
	this.tbpcValidityNot=function(tbpcValidity){if(this.proxy)return this.getProxy().tbpcValidityNot(tbpcValidity);this.put("tbpcValidityNot", "not");this.put("tbpcValidity", tbpcValidity);return this;};
	/** and tbpc_validity <= ? */
	this.tbpcValidityMin=function(min){if(this.proxy)return this.getProxy().tbpcValidityMin(min);this.put("tbpcValidityMin", min);return this;};
	/** and tbpc_validity >= ? */
	this.tbpcValidityMax=function(max){if(this.proxy)return this.getProxy().tbpcValidityMax(max);this.put("tbpcValidityMax", max);return this;};
	this.tbpcValidityIn=function(ids){
		if(this.proxy)return this.getProxy().tbpcValidityIn(ids);  this.put("tbpcValidityIn", ids);return this;
	};	
	
	/** 续期订单总额     总金额大于设置的金额，要到期的时候自动续有效期。   **/
	this.tbpcMoney=function(tbpcMoney){if(this.proxy)return this.getProxy().tbpcMoney(tbpcMoney);  this.put("tbpcMoney", tbpcMoney);return this;};
	/** and tbpc_money is null */
	this.tbpcMoneyNull=function(){if(this.proxy)return this.getProxy().tbpcMoneyNull();if(this.get("tbpcMoneyNot")==null)this.put("tbpcMoneyNot", "");this.put("tbpcMoney", null);return this;};
	/** not .... */
	this.tbpcMoneyNot=function(){if(this.proxy)return this.getProxy().tbpcMoneyNot();this.put("tbpcMoneyNot", "not");return this;};
	this.tbpcMoneyNotNull=function(){if(this.proxy)return this.getProxy().tbpcMoneyNotNull();this.put("tbpcMoneyNot", "not");this.put("tbpcMoney", null);return this;};
	this.tbpcMoneyNot=function(tbpcMoney){if(this.proxy)return this.getProxy().tbpcMoneyNot(tbpcMoney);this.put("tbpcMoneyNot", "not");this.put("tbpcMoney", tbpcMoney);return this;};
	/** and tbpc_money <= ? */
	this.tbpcMoneyMin=function(min){if(this.proxy)return this.getProxy().tbpcMoneyMin(min);this.put("tbpcMoneyMin", min);return this;};
	/** and tbpc_money >= ? */
	this.tbpcMoneyMax=function(max){if(this.proxy)return this.getProxy().tbpcMoneyMax(max);this.put("tbpcMoneyMax", max);return this;};
	
	/** 政策概述        **/
	this.tbpcZcGsh=function(tbpcZcGsh){if(this.proxy)return this.getProxy().tbpcZcGsh(tbpcZcGsh);  this.put("tbpcZcGsh", tbpcZcGsh);return this;};
	/** and tbpc_zc_gsh is null */
	this.tbpcZcGshNull=function(){if(this.proxy)return this.getProxy().tbpcZcGshNull();if(this.get("tbpcZcGshNot")==null)this.put("tbpcZcGshNot", "");this.put("tbpcZcGsh", null);return this;};
	/** not .... */
	this.tbpcZcGshNot=function(){if(this.proxy)return this.getProxy().tbpcZcGshNot();this.put("tbpcZcGshNot", "not");return this;};
	this.tbpcZcGshNotNull=function(){if(this.proxy)return this.getProxy().tbpcZcGshNotNull();this.put("tbpcZcGshNot", "not");this.put("tbpcZcGsh", null);return this;};
	this.tbpcZcGshNot=function(tbpcZcGsh){if(this.proxy)return this.getProxy().tbpcZcGshNot(tbpcZcGsh);this.put("tbpcZcGshNot", "not");this.put("tbpcZcGsh", tbpcZcGsh);return this;};
	
	/** 协议        **/
	this.tbpcXy=function(tbpcXy){if(this.proxy)return this.getProxy().tbpcXy(tbpcXy);  this.put("tbpcXy", tbpcXy);return this;};
	/** and tbpc_xy is null */
	this.tbpcXyNull=function(){if(this.proxy)return this.getProxy().tbpcXyNull();if(this.get("tbpcXyNot")==null)this.put("tbpcXyNot", "");this.put("tbpcXy", null);return this;};
	/** not .... */
	this.tbpcXyNot=function(){if(this.proxy)return this.getProxy().tbpcXyNot();this.put("tbpcXyNot", "not");return this;};
	this.tbpcXyNotNull=function(){if(this.proxy)return this.getProxy().tbpcXyNotNull();this.put("tbpcXyNot", "not");this.put("tbpcXy", null);return this;};
	this.tbpcXyNot=function(tbpcXy){if(this.proxy)return this.getProxy().tbpcXyNot(tbpcXy);this.put("tbpcXyNot", "not");this.put("tbpcXy", tbpcXy);return this;};
	
	/** 奖励政策        **/
	this.tbpcFxZc=function(tbpcFxZc){if(this.proxy)return this.getProxy().tbpcFxZc(tbpcFxZc);  this.put("tbpcFxZc", tbpcFxZc);return this;};
	/** and tbpc_fx_zc is null */
	this.tbpcFxZcNull=function(){if(this.proxy)return this.getProxy().tbpcFxZcNull();if(this.get("tbpcFxZcNot")==null)this.put("tbpcFxZcNot", "");this.put("tbpcFxZc", null);return this;};
	/** not .... */
	this.tbpcFxZcNot=function(){if(this.proxy)return this.getProxy().tbpcFxZcNot();this.put("tbpcFxZcNot", "not");return this;};
	this.tbpcFxZcNotNull=function(){if(this.proxy)return this.getProxy().tbpcFxZcNotNull();this.put("tbpcFxZcNot", "not");this.put("tbpcFxZc", null);return this;};
	this.tbpcFxZcNot=function(tbpcFxZc){if(this.proxy)return this.getProxy().tbpcFxZcNot(tbpcFxZc);this.put("tbpcFxZcNot", "not");this.put("tbpcFxZc", tbpcFxZc);return this;};
	
	/** 权益介绍        **/
	this.tbpcQyJsh=function(tbpcQyJsh){if(this.proxy)return this.getProxy().tbpcQyJsh(tbpcQyJsh);  this.put("tbpcQyJsh", tbpcQyJsh);return this;};
	/** and tbpc_qy_jsh is null */
	this.tbpcQyJshNull=function(){if(this.proxy)return this.getProxy().tbpcQyJshNull();if(this.get("tbpcQyJshNot")==null)this.put("tbpcQyJshNot", "");this.put("tbpcQyJsh", null);return this;};
	/** not .... */
	this.tbpcQyJshNot=function(){if(this.proxy)return this.getProxy().tbpcQyJshNot();this.put("tbpcQyJshNot", "not");return this;};
	this.tbpcQyJshNotNull=function(){if(this.proxy)return this.getProxy().tbpcQyJshNotNull();this.put("tbpcQyJshNot", "not");this.put("tbpcQyJsh", null);return this;};
	this.tbpcQyJshNot=function(tbpcQyJsh){if(this.proxy)return this.getProxy().tbpcQyJshNot(tbpcQyJsh);this.put("tbpcQyJshNot", "not");this.put("tbpcQyJsh", tbpcQyJsh);return this;};
	
	/** 加入条件        **/
	this.tbpcJrTj=function(tbpcJrTj){if(this.proxy)return this.getProxy().tbpcJrTj(tbpcJrTj);  this.put("tbpcJrTj", tbpcJrTj);return this;};
	/** and tbpc_jr_tj is null */
	this.tbpcJrTjNull=function(){if(this.proxy)return this.getProxy().tbpcJrTjNull();if(this.get("tbpcJrTjNot")==null)this.put("tbpcJrTjNot", "");this.put("tbpcJrTj", null);return this;};
	/** not .... */
	this.tbpcJrTjNot=function(){if(this.proxy)return this.getProxy().tbpcJrTjNot();this.put("tbpcJrTjNot", "not");return this;};
	this.tbpcJrTjNotNull=function(){if(this.proxy)return this.getProxy().tbpcJrTjNotNull();this.put("tbpcJrTjNot", "not");this.put("tbpcJrTj", null);return this;};
	this.tbpcJrTjNot=function(tbpcJrTj){if(this.proxy)return this.getProxy().tbpcJrTjNot(tbpcJrTj);this.put("tbpcJrTjNot", "not");this.put("tbpcJrTj", tbpcJrTj);return this;};
	
	/** 合伙人权益介绍        **/
	this.tbpcHhrQy=function(tbpcHhrQy){if(this.proxy)return this.getProxy().tbpcHhrQy(tbpcHhrQy);  this.put("tbpcHhrQy", tbpcHhrQy);return this;};
	/** and tbpc_hhr_qy is null */
	this.tbpcHhrQyNull=function(){if(this.proxy)return this.getProxy().tbpcHhrQyNull();if(this.get("tbpcHhrQyNot")==null)this.put("tbpcHhrQyNot", "");this.put("tbpcHhrQy", null);return this;};
	/** not .... */
	this.tbpcHhrQyNot=function(){if(this.proxy)return this.getProxy().tbpcHhrQyNot();this.put("tbpcHhrQyNot", "not");return this;};
	this.tbpcHhrQyNotNull=function(){if(this.proxy)return this.getProxy().tbpcHhrQyNotNull();this.put("tbpcHhrQyNot", "not");this.put("tbpcHhrQy", null);return this;};
	this.tbpcHhrQyNot=function(tbpcHhrQy){if(this.proxy)return this.getProxy().tbpcHhrQyNot(tbpcHhrQy);this.put("tbpcHhrQyNot", "not");this.put("tbpcHhrQy", tbpcHhrQy);return this;};
	
	/** 二维码        **/
	this.tbpcQrCode=function(tbpcQrCode){if(this.proxy)return this.getProxy().tbpcQrCode(tbpcQrCode);  this.put("tbpcQrCode", tbpcQrCode);return this;};
	/** and tbpc_qr_code is null */
	this.tbpcQrCodeNull=function(){if(this.proxy)return this.getProxy().tbpcQrCodeNull();if(this.get("tbpcQrCodeNot")==null)this.put("tbpcQrCodeNot", "");this.put("tbpcQrCode", null);return this;};
	/** not .... */
	this.tbpcQrCodeNot=function(){if(this.proxy)return this.getProxy().tbpcQrCodeNot();this.put("tbpcQrCodeNot", "not");return this;};
	this.tbpcQrCodeNotNull=function(){if(this.proxy)return this.getProxy().tbpcQrCodeNotNull();this.put("tbpcQrCodeNot", "not");this.put("tbpcQrCode", null);return this;};
	this.tbpcQrCodeNot=function(tbpcQrCode){if(this.proxy)return this.getProxy().tbpcQrCodeNot(tbpcQrCode);this.put("tbpcQrCodeNot", "not");this.put("tbpcQrCode", tbpcQrCode);return this;};
	
	
	
	this.add=function(key,value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	this.desc=function(sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	this.asc=function(sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	this.definex=function(sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	
	/** 获取所有合伙人卡配置 **/
	this.list=function(size){
		this.data.size = size;
		var protocol = ux.ajax("/admin/partner/config.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list)return protocol.data.list;
		return [];
	}
	/** 获取合伙人卡配置分页 **/
	this.page=function(page,size){
		this.data.size = size;
		this.data.page = page;
		var protocol = ux.ajax("/admin/partner/config.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data)return data;
		return {list:[]};
	}
	/** 根据查询条件取合伙人卡配置 **/
	this.get=function(){
		this.data.size = 1;
		var protocol = ux.ajax("/admin/partner/config.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list && protocol.data.list.length==1)return protocol.data.list[0]; 
		return null;
	}
}

TbPartnerConfig.get = function(id){
	var protocol = ux.ajax("/admin/partner/config.get.do",{id:id});
	if(!protocol)return null;
	if(protocol.data)return protocol.data.tbPartnerConfig;
	return null;
}

TbPartnerConfig.where = new TbPartnerConfig.Where(0,true);